package cn.shop.cloud.domain;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: work
 * @ClassName a
 * @description:
 * @author: 李尧坤
 * @create: 2025−01-08 20:03
 * @Version 1.0
 **/

@Getter
@Setter
@ToString
public class OrderInfo implements Serializable {
    public static final Integer STATUS_CANCEL=2;  //手动取消订单
    public static final Integer STATUS_NO_PAY=0;//未付款
    public static final Integer STATUS_TIMEOUT=1;  //订单超时未支付
    public static final Integer STATUS_ACCOUNT_PAID=3;//已经付款过了

    //这里的属性没有写
    private String orderNo;
    private Long userId;
    private Long goodId;
    private String goodImg;
    private Long deliveryAddrId;
    private String goodName;
    private Integer goodCount;
    private BigDecimal goodPrice;
    private BigDecimal seckillPrice;
    private Integer status=STATUS_NO_PAY;
    private Date createDate;
    private Date payDate;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public String getGoodImg() {
        return goodImg;
    }

    public void setGoodImg(String goodImg) {
        this.goodImg = goodImg;
    }

    public Long getDeliveryAddrId() {
        return deliveryAddrId;
    }

    public void setDeliveryAddrId(Long deliveryAddrId) {
        this.deliveryAddrId = deliveryAddrId;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public Integer getGoodCount() {
        return goodCount;
    }

    public void setGoodCount(Integer goodCount) {
        this.goodCount = goodCount;
    }

    public BigDecimal getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(BigDecimal goodPrice) {
        this.goodPrice = goodPrice;
    }

    public BigDecimal getSeckillPrice() {
        return seckillPrice;
    }

    public void setSeckillPrice(BigDecimal seckillPrice) {
        this.seckillPrice = seckillPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }
}
